/*
 * Copyright (c) 1994-2017, Joyoung Stock CO.LTD.
 * The FWJR Project.
 * All Rights Reserved.
 */

package com.jz.jd.rest.code;

/**
 * RMS业务错误码定义
 *
 * @author ActonYuan (yuanmingming@joyoung.com)
 * @version Version    Time                  Description<br>
 *          1.0       17-5-22 下午4:21       Create<br>
 */
public class BusinessCode {
    /**
     * 成功
     */
    public static final int SUCCESS = 1;

    /**
     * 失败
     */
    public static final int ERROR_FAILED = 1;

    /**
     * 异常
     */
    public static final int ERROR_EXCEPTION = 2;

    /**
     * 加密标识错误
     */
    public static final int ERROR_SIGN_FLAG_WRONG = 3;

    /**
     * 解密失败
     */
    public static final int ERROR_DECODE_FAILED = 4;

    /**
     * 处理器获取失败
     */
    public static final int ERROR_PROCESSOR_GET_FAILED = 5;

    /**
     * 数据解析失败
     */
    public static final int ERROR_DATA_PARSE_FAILED = 6;

    /**
     * 数据验证不通过
     */
    public static final int ERROR_DATA_VERIFY_FAILED = 7;

    /**
     * http请求异常，超时等
     */
    public static final int ERROR_HTTP_EXCEPTION = 8;

    /**
     * sign签名错误
     */
    public static final int ERROR_CODE_SIGN_WRONG = 10000;

    /**
     * sessionId失效或错误，请重新登录
     */
    public static final int ERROR_CODE_SESSION_OUT_OF_DATE = 10001;

    /**
     * APP参数不全
     */
    public static final int ERROR_CODE_APP_PARAMETER_INCOMPLETE = 10002;

    /**
     * 用户不存在
     */
    public static final int ERROR_CODE_USER_NOT_EXIST = 10003;

    /**
     * 用户或密码错误
     */
    public static final int ERROR_CODE_USERNAME_OR_PASSWORD_WRONG = 10004;

    /**
     * 用户已存在
     */
    public static final int ERROR_CODE_USER_ALREADY_EXIST = 10005;

    /**
     * 手机号不正确
     */
    public static final int ERROR_CODE_PHONE_NUM_WRONG = 10006;

    /**
     * 验证码不正确
     */
    public static final int ERROR_CODE_VERIFY_CODE_WRONG = 10007;

    /**
     * 手机号已存在
     */
    public static final int ERROR_CODE_PHONE_NUM_ALREADY_EXIST = 10008;

    /**
     * 用户名长度不合法(3-15个字符)
     */
    public static final int ERROR_CODE_USERNAME_NOT_VALIDATE = 10009;

    /**
     * 账号锁定(输入的验证码错误次数过多，目前为错误4
     * 您输入错误次数过多，请10分钟之后再试!
     */
    public static final int ERROR_CODE_ACCOUNT_FROZEN = 10010;

    /**
     * 账号锁定已解除
     */
    public static final int ERROR_CODE_ACCOUNT_UNFREEZE = 10011;

    /**
     * 验证码当日次数超限
     */
    public static final int ERROR_CODE_VERIFY_CODE_OUT_OF_LIMIT = 10012;

    /**
     * 设备不存在
     */
    public static final int ERROR_CODE_DEVICE_NOT_EXIST = 10013;

    /**
     * 设备不存在或已解绑
     */
    public static final int ERROR_CODE_DEVICE_UNBIND = 10014;

    /**
     * 设备不在线
     */
    public static final int ERROR_CODE_DEVICE_OFFLINE = 10015;

    /**
     * 短信发送失败
     */
    public static final int ERROR_CODE_SMS_SEND_FAILED = 10016;

    /**
     * 邮件发送失败
     */
    public static final int ERROR_CODE_EMAIL_SEND_FAILED = 10017;


    /**
     * 没有该用户
     */
    public static final int ERROR_CODE_NO_USER = 10020;
}
